package com.hengtongxing.hejiayun.utils;

import android.app.Activity;
import android.content.Context;
import android.graphics.Point;
import android.graphics.Rect;
import android.os.Build;
import android.util.DisplayMetrics;
import android.view.WindowManager;


/**
 * ===========================================
 * Author:LZF
 * Time:2019/8/10
 * Description:  获取屏幕宽高
 * =============================================
 */
public class StringUtils {

    /**
     * 字符串为null时返回空字符串""
     */
    public static String nullString(String string) {

        if (null == string || "null".equals(string) || "".equals(string) || "nullnullnull".equals(string)) {
            return "";
        } else {
            return string;
        }
    }

}
